package exceptcion;

public class TcrCatchDemo {
    public static void main(String[] args) {
        System.out.println("程序启动了...");
        try {
            //String ogjo=null;
            //System.out.println(ogjo.length());
            String line="abcc";
            System.out.println(Integer.parseInt(line));
        }catch (StringIndexOutOfBoundsException a){
            System.out.println("出现了字符串下标越界异常并处理完毕");
        }catch (NullPointerException b){
            System.out.println("出现了空指针异常并处理完毕");
        }catch (Exception c){
            System.out.println("错了就是错了。");
        }
        System.out.println("继续执行...");

    }
}
